﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x0200131D RID: 4893
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeAllRewardScRsp : IMessage<TakeAllRewardScRsp>, IMessage, IEquatable<TakeAllRewardScRsp>, IDeepCloneable<TakeAllRewardScRsp>, IBufferMessage
	{
		// Token: 0x17003DBD RID: 15805
		// (get) Token: 0x0600DB09 RID: 56073 RVA: 0x0024AD8D File Offset: 0x00248F8D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeAllRewardScRsp> Parser
		{
			get
			{
				return TakeAllRewardScRsp._parser;
			}
		}

		// Token: 0x17003DBE RID: 15806
		// (get) Token: 0x0600DB0A RID: 56074 RVA: 0x0024AD94 File Offset: 0x00248F94
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeAllRewardScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003DBF RID: 15807
		// (get) Token: 0x0600DB0B RID: 56075 RVA: 0x0024ADA6 File Offset: 0x00248FA6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeAllRewardScRsp.Descriptor;
			}
		}

		// Token: 0x0600DB0C RID: 56076 RVA: 0x0024ADAD File Offset: 0x00248FAD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAllRewardScRsp()
		{
		}

		// Token: 0x0600DB0D RID: 56077 RVA: 0x0024ADB8 File Offset: 0x00248FB8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAllRewardScRsp(TakeAllRewardScRsp other) : this()
		{
			this.reward_ = ((other.reward_ != null) ? other.reward_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DB0E RID: 56078 RVA: 0x0024AE04 File Offset: 0x00249004
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeAllRewardScRsp Clone()
		{
			return new TakeAllRewardScRsp(this);
		}

		// Token: 0x17003DC0 RID: 15808
		// (get) Token: 0x0600DB0F RID: 56079 RVA: 0x0024AE0C File Offset: 0x0024900C
		// (set) Token: 0x0600DB10 RID: 56080 RVA: 0x0024AE14 File Offset: 0x00249014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList Reward
		{
			get
			{
				return this.reward_;
			}
			set
			{
				this.reward_ = value;
			}
		}

		// Token: 0x17003DC1 RID: 15809
		// (get) Token: 0x0600DB11 RID: 56081 RVA: 0x0024AE1D File Offset: 0x0024901D
		// (set) Token: 0x0600DB12 RID: 56082 RVA: 0x0024AE25 File Offset: 0x00249025
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600DB13 RID: 56083 RVA: 0x0024AE2E File Offset: 0x0024902E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeAllRewardScRsp);
		}

		// Token: 0x0600DB14 RID: 56084 RVA: 0x0024AE3C File Offset: 0x0024903C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeAllRewardScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Reward, other.Reward) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DB15 RID: 56085 RVA: 0x0024AE8C File Offset: 0x0024908C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.reward_ != null)
			{
				num ^= this.Reward.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DB16 RID: 56086 RVA: 0x0024AEE1 File Offset: 0x002490E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DB17 RID: 56087 RVA: 0x0024AEE9 File Offset: 0x002490E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DB18 RID: 56088 RVA: 0x0024AEF4 File Offset: 0x002490F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.reward_ != null)
			{
				output.WriteRawTag(106);
				output.WriteMessage(this.Reward);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DB19 RID: 56089 RVA: 0x0024AF50 File Offset: 0x00249150
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.reward_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Reward);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DB1A RID: 56090 RVA: 0x0024AFA8 File Offset: 0x002491A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeAllRewardScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.reward_ != null)
			{
				if (this.reward_ == null)
				{
					this.Reward = new ItemList();
				}
				this.Reward.MergeFrom(other.Reward);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DB1B RID: 56091 RVA: 0x0024B010 File Offset: 0x00249210
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DB1C RID: 56092 RVA: 0x0024B01C File Offset: 0x0024921C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 56U)
				{
					if (num != 106U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						if (this.reward_ == null)
						{
							this.Reward = new ItemList();
						}
						input.ReadMessage(this.Reward);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400570D RID: 22285
		private static readonly MessageParser<TakeAllRewardScRsp> _parser = new MessageParser<TakeAllRewardScRsp>(() => new TakeAllRewardScRsp());

		// Token: 0x0400570E RID: 22286
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400570F RID: 22287
		public const int RewardFieldNumber = 13;

		// Token: 0x04005710 RID: 22288
		private ItemList reward_;

		// Token: 0x04005711 RID: 22289
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04005712 RID: 22290
		private uint retcode_;
	}
}
